<div class="zs-body" data-ng-init="formInit('gzgzrqdsj', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{cjsj:0}
    }) && loadData('gzgzrqdsj');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">考勤设置</a>
            <i class="right-arr"></i>
            <a href="javascript:;">签到时间</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzgzrqdsj') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzgzrqdsj', gzgzrqdsj.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzgzrqdsj')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="开始月份" ng-model="gzgzrqdsj.queryObject['ksyf:like']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="结束月份" ng-model="gzgzrqdsj.queryObject['jsyf:like']"/>
                </span>
            </div>
			<div class="operation item" style="margin-top:7px;">
				<input type="button" class="zs-btn orange" value="查询" 
					ng-click="loadData('gzgzrqdsj')"/>
			</div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzgzrqdsj','allCheckbox');" />
                                    </th>
									<th>开始时间</th>
									<th>结束时间</th>
									<th>上午上班时间</th>
									<th>上午下班时间</th>
									<th>下午上班时间</th>
									<th>下午下班时间</th>
									<th>创建时间</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzgzrqdsj.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzgzrqdsj',r);"
                                            ng-model="r.selected" />
                                    </td>
            						<td>
                                        <a ng-click="editRow('gzgzrqdsj',r) && openWindow('edit');">
                                            <label>{{r.ksyf}}月{{r.ksrq}}日</label>
                                        </a>
                                   </td>
								   <td>
								        <a ng-click="editRow('gzgzrqdsj',r) && openWindow('edit');">
								            <label>{{r.jsyf}}月{{r.jsrq}}日</label>
								        </a>
								   </td>
								   <td>
								        <a ng-click="editRow('gzgzrqdsj',r) && openWindow('edit');">
								            <label>{{r.swsbs}}时{{r.swsbf}}分&nbsp;-&nbsp;{{r.swsbjss}}时{{r.swsbjsf}}分</label>
								        </a>
								   </td>
								   <td>
								        <a ng-click="editRow('gzgzrqdsj',r) && openWindow('edit');">
								            <label>{{r.swxbs}}时{{r.swxbf}}分&nbsp;-&nbsp;{{r.swxbjss}}时{{r.swxbjsf}}分</label>
								        </a>
								   </td>
								   <td>
								        <a ng-click="editRow('gzgzrqdsj',r) && openWindow('edit');">
								            <label>{{r.xwsbs}}时{{r.xwsbf}}分&nbsp;-&nbsp;{{r.xwsbjss}}时{{r.xwsbjsf}}分</label>
								        </a>
								   </td>
								   <td>
								        <a ng-click="editRow('gzgzrqdsj',r) && openWindow('edit');">
								            <label>{{r.xwxbs}}时{{r.xwxbf}}分&nbsp;-&nbsp;{{r.xwxbjss}}时{{r.xwxbjsf}}分</label>
								        </a>
								   </td>
								   <td>
                                        <a ng-click="editRow('gzgzrqdsj',r) && openWindow('edit');">
                                            <label ng-bind="r.cjsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzgzrqdsj'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="上下班时间编辑" width='800px' height='400px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
						   <tr>
                                <td class="text" width="20%">有效开始日期:</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzgzrqdsj.editRow.ksyf"
										ng-change="setYF(gzgzrqdsj.editRow.ksyf,'ksyf')" class="zs-input zs-small-input" />月
									<input type="text" ng-model="gzgzrqdsj.editRow.ksrq"
										ng-change="setRQ(gzgzrqdsj.editRow.ksrq,'ksrq')" class="zs-input zs-small-input" />日
                                </td>
                                <td class="text" width="20%">有效结束日期:</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzgzrqdsj.editRow.jsyf"
										ng-change="setYF(gzgzrqdsj.editRow.jsyf,'jsyf')" class="zs-input zs-small-input" />月
                                	<input type="text" ng-model="gzgzrqdsj.editRow.jsrq"
										ng-change="setRQ(gzgzrqdsj.editRow.jsrq,'jsrq')" class="zs-input zs-small-input" />日
                                </td>
                            </tr>
							<tr>
							    <td class="text" width="20%">上午上班开始时间:</td>
							    <td class="left" width="30%">
							    	<input type="text" ng-model="gzgzrqdsj.editRow.swsbs"
										ng-change="setShi(gzgzrqdsj.editRow.swsbs,'swsbs')" class="zs-input zs-small-input" />时
							    	<input type="text" ng-model="gzgzrqdsj.editRow.swsbf"
										ng-change="setFen(gzgzrqdsj.editRow.swsbf,'swsbf')" class="zs-input zs-small-input" />分
							    </td>
								<td class="text" width="20%">上午上班结束时间:</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzgzrqdsj.editRow.swsbjss"
										ng-change="setShi(gzgzrqdsj.editRow.swsbjss,'swsbjss')" class="zs-input zs-small-input" />时
									<input type="text" ng-model="gzgzrqdsj.editRow.swsbjsf"
										ng-change="setFen(gzgzrqdsj.editRow.swsbjsf,'swsbjsf')" class="zs-input zs-small-input" />分
								</td>
							</tr>
							<tr>
							    <td class="text" width="20%">上午下班开始时间:</td>
							    <td class="left" width="30%">
							    	<input type="text" ng-model="gzgzrqdsj.editRow.swxbs"
							    		ng-change="setShi(gzgzrqdsj.editRow.swxbs,'swxbs')" class="zs-input zs-small-input" />时
							    	<input type="text" ng-model="gzgzrqdsj.editRow.swxbf"
							    		ng-change="setFen(gzgzrqdsj.editRow.swxbf,'swxbf')" class="zs-input zs-small-input" />分
							    </td>
								<td class="text" width="20%">上午下班结束时间:</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzgzrqdsj.editRow.swxbjss"
										ng-change="setShi(gzgzrqdsj.editRow.swxbjss,'swxbjss')" class="zs-input zs-small-input" />时
									<input type="text" ng-model="gzgzrqdsj.editRow.swxbjsf"
										ng-change="setFen(gzgzrqdsj.editRow.swxbjsf,'swxbjsf')" class="zs-input zs-small-input" />分
								</td>
							</tr>
							<tr>
							    <td class="text" width="20%">下午上班开始时间:</td>
							    <td class="left" width="30%">
							    	<input type="text" ng-model="gzgzrqdsj.editRow.xwsbs"
										ng-change="setShi(gzgzrqdsj.editRow.xwsbs,'xwsbs')" class="zs-input zs-small-input" />时
							    	<input type="text" ng-model="gzgzrqdsj.editRow.xwsbf"
										ng-change="setFen(gzgzrqdsj.editRow.xwsbf,'xwsbf')" class="zs-input zs-small-input" />分
							    </td>
								<td class="text" width="20%">下午上班结束时间:</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzgzrqdsj.editRow.xwsbjss"
										ng-change="setShi(gzgzrqdsj.editRow.xwsbjss,'xwsbjss')" class="zs-input zs-small-input" />时
									<input type="text" ng-model="gzgzrqdsj.editRow.xwsbjsf"
										ng-change="setFen(gzgzrqdsj.editRow.xwsbjsf,'xwsbjsf')" class="zs-input zs-small-input" />分
								</td>
							</tr>
							<tr>
							    <td class="text" width="20%">下午下班开始时间:</td>
							    <td class="left" width="30%">
							    	<input type="text" ng-model="gzgzrqdsj.editRow.xwxbs"
							    		ng-change="setShi(gzgzrqdsj.editRow.xwxbs,'xwxbs')" class="zs-input zs-small-input" />时
							    	<input type="text" ng-model="gzgzrqdsj.editRow.xwxbf"
							    		ng-change="setFen(gzgzrqdsj.editRow.xwxbf,'xwxbf')" class="zs-input zs-small-input" />分
							    </td>
								<td class="text" width="20%">下午下班结束时间:</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzgzrqdsj.editRow.xwxbjss"
										ng-change="setShi(gzgzrqdsj.editRow.xwxbjss,'xwxbjss')" class="zs-input zs-small-input" />时
									<input type="text" ng-model="gzgzrqdsj.editRow.xwxbjsf"
										ng-change="setFen(gzgzrqdsj.editRow.xwxbjsf,'xwxbjsf')" class="zs-input zs-small-input" />分
								</td>
							</tr>
							<tr>
							    <td class="text" width="20%">创建时间</td>
							     <td class="left" width="30%" colspan="3">
							     	<ag-Datebox id='cjsj' editable='false'
							     		class="zs-input" style="width:175px;height: 28px"
							     		ng-model="gzgzrqdsj.editRow.cjsj" ></ag-Datebox>
							    </td>
							</tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzgzrqdsj', gzgzrqdsj.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>